import http from '@/utils/http';

export const getMemberOrderPre = () => {
    return http({ url: '/member/order/pre' });
};

export const postMemberOrder = (data) => {
    return http({ url: '/member/order', method: 'post', data });
};

export const getMemberOrderPreNow = (data) => {
    return http({ url: '/member/order/pre/now', data });
};


export const getMemberOrderDetail = (id) => {
    return http({ url: `/member/order/${id}` });
};

export const getPayWxPayMiniPay = (data) => {
    return http({ url: `/pay/wxPay/miniPay`, data });
};

export const getMemberOrder = (data) => {
    return http({ url: `/member/order`, data });
};